/*
 * exception.h
 *
 *  Created on: Sep 2, 2013
 *      Author: Jeff
 */

class NULLPointerException: public std::exception
{
private:
	std::string msg;

public:
	NULLPointerException(std::string msg){this->msg = msg;}
	~NULLPointerException() throw(){}
	const char* what() const throw(){return this->msg.c_str();}
};

class FileNotFoundException : public std::exception
{
private:
	std::string msg;

public:
	FileNotFoundException(std::string file){this->msg = file + " doesn't exist";}
	~FileNotFoundException() throw(){}
	const char* what() const throw(){return this->msg.c_str();}
};
